package com.zhongan.user.api.service;

import com.zhongan.common.dto.ResultBase;
import com.zhongan.user.api.dto.UserDto;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 用户服务接口
 * @author za-shaojian
 */
@RequestMapping("/user")
public interface UserService {

    /**
     * 根据用户名查询用户信息
     * @param userName
     * @return
     */
    @RequestMapping(value = "findByUsername",method = RequestMethod.POST)
    ResultBase<UserDto> findByUsername(String userName);

    @RequestMapping(method = RequestMethod.GET, value = "/add")
    ResultBase<Integer> add(@RequestParam(value = "a") Integer a, @RequestParam(value = "b") Integer b);
}
